﻿@model PresentationMVC.Models.InvoiceDataModel
@{
    ViewBag.Title = "Invoice";
}
<script type="text/jscript">

    function reloadGrid() {

        $.ajax(
         { type: "GET",
             url: '/Invoice/ReloadGrid/',
             data: "{}",
             cache: false,
             dataType: "html",
             success: function (data)
             { $('#DivGrid').html(data); }
         })
    }
</script>

<div>
    <div class="success-msg" id="create-msg">
        @ViewData["MSG"]
    </div>
    <div>
        @Html.ActionLink("Create New Invoice", "CreateInvoice", "Invoice")
    </div>
    <br />
    <div>
        @Html.Partial("InvoiceSearch")
    </div>
    <div id="DivGrid">
        <div id="resultLoadingDiv" style="border: none; display: none; margin: auto;">
            <img alt="" src="../../Content/images/ajax-loader.gif" />Loading...
        </div>
        @Html.Partial("InvoiceGridPartial")
    </div>
    <div id="DivInvoiceJobGrid">
        <div id="invoiceJobResultLoadingDiv" style="border: none; display: none; margin: auto;">
            <img alt="" src="../../Content/images/ajax-loader.gif" />Loading...
        </div>
        @Html.Partial("InvoiceJobBookingGridPartial")
    </div>
</div>
